package com.luo.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serial;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 班级信息表
 * </p>
 *
 * @author luo
 * @since 2025-06-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("class")
public class Class implements Serializable {

    @Serial
    private static final long serialVersionUID = -6900961955464723776L;

    /**
     * 班级ID
     */
    @TableId(value = "class_id", type = IdType.AUTO)
    private Integer classId;

    /**
     * 班级名称
     */
    @TableField("class_name")
    private String className;

    /**
     * 班主任
     */
    @TableField("class_teacher")
    private String classTeacher;

    /**
     * 班级人数
     */
    @TableField("class_size")
    private Integer classSize;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;


    /**
     * 班级人数
     */
    @TableField(exist = false)
    private Integer TheClassSize;


    /**
     * 性别
     */
    @TableField(exist = false)
    private Gender gender;

}
